using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using Sagile.Nepma;

namespace Sagile.Nepma.Test
{
    /// <summary>
    /// Dummy task 5
    /// </summary>
    public class Task5 : TaskBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Task5"/> class.
        /// </summary>
        public Task5() : base("Task5", true, 2)
        {
            Console.WriteLine(this);
            Id = "E631172A-5B7A-46da-877D-AE20152C4685";
        }

        /// <summary>
        /// Method called by the worker thread. Finished event is called at the end of the method.
        /// </summary>
        protected override void Process()
        {
            Thread.Sleep(5000);
            base.Process();
        }
    }
}
